package stoppuhr;

// FR Version

//import java.awt.*;
import javax.swing.*;

public class ClockManager extends JFrame {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public EventHandler eh;
	public ClockFrame view;
	public Clock clock;
	public Ticker ticker;
	
	public ClockManager(){ //do the same like main()
		view = new ClockFrame("Stoppuhr");
		clock = new Clock(view);
		ticker = new Ticker(clock);
		eh = new EventHandler(view, ticker, clock);
	}
	

	public static void main(String[] args) throws InterruptedException {
		System.out.println("Ich werde eine Stoppuhr");
		
//		ClockFrame clockFrame = new ClockFrame("Stoppuhr");
//		Clock clock = new Clock(clockFrame);
//		Ticker ticker = new Ticker(clock);
//		EventHandler eventHandler = new EventHandler(clockFrame, ticker, clock);
//		EventHandler eventHandler = new EventHandler();
	}

}
